using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum AccuracyType
{
    EXACT = 0,
    DEVIATION = 1,
    HIT = 2,
    AWKWARD = 3,
}

public class JudgeSystem
{
    public static AccuracyType GetAccuracy(float delta)
    {
        if (delta <= 0.04f)
            return AccuracyType.EXACT;
        else if (delta <= 0.08f)
            return AccuracyType.DEVIATION;
        else if (delta <= 0.15f)
            return AccuracyType.HIT;
        else
            return AccuracyType.AWKWARD;
    }
}
